From: Adel Gadllah Date: Wed, 9 Feb 2011 22:57:23 +0000 (+0100) Subject: workspaceSwitcher: Initially hide after creation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9060 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a4e53953;p=gnome-shell.git workspaceSwitcher: Initially hide after creation The default state of the switcher is constructed but not visible, so create it that way. This fixes a bug where if we created the switcher but didn't show it or use it we'd end up with an empty, odd looking switcher. --- diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js index ab1893372..79e5db972 100644 --- a/js/ui/workspaceSwitcherPopup.js +++ b/js/ui/workspaceSwitcherPopup.js @@ -49,7 +49,8 @@ WorkspaceSwitcherPopup.prototype = { this._position(); - this.actor.show(); + this.actor.hide(); + this._timeoutId = Mainloop.timeout_add(DISPLAY_TIMEOUT, Lang.bind(this, this._onTimeout)); },